{aide_template 'common/header'}
<div class="main">
	<div class="panel panel-default">
		<div class="table-responsive">
			<table class="table table-hover" style="min-width: 300px;">
				<tbody>
					<tr>
						<td><image src="{php echo tomedia($merchant['logo']);}" style="max-width: 48px; max-height: 48px; border: 1px dotted gray"></td>
						<td>{$merchant['name']}</td>
						<td>总成交额：{if $account['amount']}{$account['amount']}元{else}0.00元{/if}</td>
						<td>目前可结算金额：{if $account['no_money']}{$account['no_money']}元{else}0.00元{/if}</td>
						<td>上缴佣金：{php echo currency_format($account['no_money']*$merchant['percent']*0.01);}元</td>
						<td>佣金百分比：{if !empty($merchant['percent'])}{$merchant['percent']}%{else}0.00%{/if}</td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<form action="" method="post" class="form-horizontal form" enctype="multipart/form-data">
<div class="panel panel-default">
    <div class="panel-heading">
        数据统计：以下数据根据订单统计得到，若<font color="red" size="3">删除</font>过订单或则结算记录，则统计<font color="red" size="3">不准</font>！！！请自行统计，并更改！
    </div>
    <div class="panel-body">
         <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-lg-3 control-label">【根据订单统计】总交易金额：</label>
            <div class="col-sm-9 col-xs-12 col-lg-1">
                <div class="form-control-static">{$zm} 元</div>
            </div>
            <label class="col-xs-12 col-sm-3 col-lg-2 control-label">当前数据：</label>
            <div class="col-sm-9 col-xs-12 col-lg-2">
                <div class="form-control-static">{$account['amount']} 元</div>
            </div>
             <label class="col-xs-12 col-sm-3 col-lg-2 control-label">更改总交易金额：</label>
            <div class="col-sm-9 col-xs-12 col-lg-2 pull-left">
                <input class="form-control" name="amount" id="" type="text" value="{$_GPC['amount']}" placeholder="手动输入金额">
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-lg-3 control-label">【根据结算记录统计】已结算金额：</label>
            <div class="col-sm-9 col-xs-12 col-lg-1">
                <div class="form-control-static">{$rm} 元</div>
            </div>
            <label class="col-xs-12 col-sm-3 col-lg-2 control-label">当前数据：</label>
            <div class="col-sm-9 col-xs-12 col-lg-2">
                <div class="form-control-static">{$rm} 元</div>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-lg-3 control-label">【根据订单统计】总可结算金额：</label>
            <div class="col-sm-9 col-xs-12 col-lg-1">
                <div class="form-control-static">{$km} 元</div>
            </div>
             <label class="col-xs-12 col-sm-3 col-lg-2 control-label">目前可结算金额：</label>
            <div class="col-sm-9 col-xs-12 col-lg-2">
                <div class="form-control-static">{$account['no_money']} 元</div>
            </div>
             <label class="col-xs-12 col-sm-3 col-lg-2 control-label">更改目前可结算金额：</label>
            <div class="col-sm-9 col-xs-12 col-lg-2 pull-left">
                <input class="form-control" name="no_money" id="" type="text" value="{$_GPC['no_money']}" placeholder="手动输入金额">
            </div>
        </div>

         <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-lg-8 control-label">目前可结算金额 = 总可结算金额 - 已结算金额；	</label>
        </div>
        <div class="form-group">
            <label class="col-xs-12 col-sm-3 col-md-2 control-label"></label>
            <div class="col-sm-9 col-xs-12">
                <input type="hidden" name="id" value="{$id}">
                <input type="hidden" name="token" value="{$_W['token']}">
                <input name="submit" type="submit" value="确认修改" class="btn btn-primary span2" onclick="return confirm('确认？');return false;">
            </div>
           </div>

        </div>
    </div>

</form>
</div>
{aide_template 'common/footer'}
